<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>component</title>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>

<body>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-main>
                <div id="app">
                    <my-component></my-component>
                    <child></child>
                </div>
            </el-main>
        </el-container>
    </el-container>


    <script>
        Vue.component('my-component', {
            template: `<p>hello component</p>`
        })

        let child = {
            template: `<div>A custom component</div>`
        }
        new Vue({
            el: '#app',
            data: {

            },
            components: {
                'child': child
            }
        })
    </script>
</body>

</html>